import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import BaiduMap from 'vue-baidu-map-3x'

import * as echarts from 'echarts'


// 1. 引入Vant
import Vant from 'vant'
// 2. 引入组件样式
import 'vant/lib/index.css'

import 'vant/lib/index.css'
import './assets/main.css'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(Vant)
app.use(BaiduMap, {
    ak: "gWIsG1YINKln2MRjSVxAy0fYGicSdet2"
});

app.config.globalProperties.$echarts = echarts;
app.mount('#app')
